CE Gobi SDK  2.7
GobiApi
GobiAPIDefs.h
1 #ifndef __GobiAPIDef_h__
2 #define __GobiAPIDef_h__
3 
4 /*=========================================================================*/
5 // Definitions
6 /*=========================================================================*/
7 #ifdef GOBIAPI_EXPORTS
8  #define IMPORTGOBI extern "C" __declspec( dllexport )
9 #else //GOBIAPI_EXPORTS
10  #ifdef __cplusplus
11  /* C++ callable DLL */
12  #define IMPORTGOBI extern "C" __declspec( dllimport )
13  #else
14  /* C callable DLL */
15  #define IMPORTGOBI __declspec( dllimport )
16  #endif
17 #endif //GOBIAPI_EXPORTS
18 
19 #ifdef GOBIAPI_EXPORTS
20  #define SWIIMPORT extern "C" __declspec( dllexport )
21 #else //GOBIAPI_EXPORTS
22  #ifdef __cplusplus
23  /* C++ callable DLL */
24  #define SWIIMPORT extern "C" __declspec( dllimport )
25  #else
26  /* C callable DLL */
27  #define SWIIMPORT __declspec( dllimport )
28  #endif
29 #endif //GOBIAPI_EXPORTS
30 
31 // Calling convention for API
32 #define SWICALLBACK __stdcall
33 #define SWICMAPI __stdcall
34 
35 // Calling convention for API
36 #define GOBICALLBACK __stdcall
37 #define GOBICMAPI __stdcall
38 // Calling convention for API
39 #define GOBIAPI __cdecl
40 
41 #endif